package com.black.utils.encrypt.sm4;

public class SM4Context {
    public int mode;

    public long[] sk;

    public boolean isPadding;

    public byte[] key;

    public byte[] iv;

    public SM4Context(String key) {
        this.sk = new long[32];
        this.isPadding = true;
        this.key = key.getBytes();
    }

    public SM4Context(String key, String iv) {
        this.isPadding = true;
        this.sk = new long[32];
        this.key = key.getBytes();
        this.iv = iv.getBytes();
    }

    public SM4Context(byte[] key) {
        this.sk = new long[32];
        this.isPadding = true;
        this.key = key;
    }

    public SM4Context(byte[] key, byte[] iv) {
        this.isPadding = true;
        this.sk = new long[32];
        this.key = key;
        this.iv = iv;
    }
}
